/*package com.ssm_crm.controller;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import com.ssm_crm.pojo.User;
import com.ssm_crm.service.UserService;
import com.ssm_crm.utils.MD5Utils;

*//**
 * @author Yusei
 * 仅用于注册系统用户使用
 * 这个CRM系统不开放注册
 *//*

@Controller
public class UserController {
	
	@Autowired
	private UserService userService;

	@RequestMapping("userRegist")
	public void userRegist(){
		// 注册用户的信息
		User user = new User();
		user.setUser_code("clearlove");
		user.setUser_name("ClearLove");
		String password = "77777";
		user.setUser_password(MD5Utils.md5(password));
		user.setUser_state("1");
		// 调用service，判断用户是否存在
		String existUser = userService.existUser(user);
		System.out.println("用户存在情况：" + existUser);
		if(existUser == null){
			// 注册用户
			userService.userRegist(user);
		}

	}
	
}
*/